<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>07-Vue指令-v-on【内联语句】</title>
</head>
<body>
<div id="app">
    <!-- (v-on:) 可以简写成 @  -->
    <button @mouseenter="count--">-</button>
    <span>{{count}}</span>
    <button v-on:click="count++">+</button>
</div>
<script src="./vue.js"></script>
<script>
    const app = new Vue({
        el: '#app',
        data: {
            count: 100
        }
    })
</script>
</body>
</html>